feat!: update target frameworks to netstandard2.0, netstandard2.1, net462, net8.0, net10.0#1031
Merged
MIchaelMainer merged 5 commits intomainfrom May 1, 2026
Merged
Conversation
8e07ce9 to
8d76345
Compare
MIchaelMainer
previously approved these changes
Apr 20, 2026
…t462, net8.0, net10.0 BREAKING CHANGE: Dropped net6.0 and net9.0 target frameworks. Added netstandard2.1, net8.0, and net10.0. Updated MAUI targets from net6.0-* to net8.0-*. Downgraded xunit.runner.visualstudio to 2.5.8 for net462 test compatibility. Added conditional compilation directives for net462 test compatibility. Closes #1030 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
8d76345 to
7944384
Compare
…ecated macos - Update MAUI platform targets from net6.0-* to net10.0-* in Directory.Build.props - Remove net6.0-macos target (deprecated, covered by maccatalyst) - Remove dead #elif MACOS code path in GraphClientFactory.cs - Remove 'macos' from workload install in CI pipelines The net6.0-macos workload no longer exists in modern .NET SDKs, and the net6.0-* MAUI platform targets are incompatible with the .NET 10 SDK used in CI. The base net6.0 TFM is preserved for non-MAUI consumers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Windows-latest now resolves to Windows Server 2025, providing better alignment with the .NET 10 SDK and modern MAUI workloads. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
.NET 6 is no longer needed - the project targets net8.0 and net10.0. Updated SDK install to match the actual target frameworks. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
MIchaelMainer
approved these changes
May 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Updates target frameworks across the solution to align with currently supported .NET runtimes.
Closes #1030
Changes
Core library (
Microsoft.Graph.Core.csproj)netstandard2.1,net8.0,net10.0netstandard2.0,net462Directory.Build.props
net6.0MAUI targetnet6.0-*tonet8.0-*Test project (
Microsoft.Graph.DotnetCore.Core.Test.csproj)net6.0tonet462;net8.0;net10.0xunit.runner.visualstudiofrom3.0.2to2.5.8fornet462compatibilityTrimming test project
net9.0tonet10.0.gitignore
TestResultspattern to match nested directoriesTest compatibility fixes
new HttpMethod("PATCH")instead ofHttpMethod.Patch(unavailable on net462)#if NETFRAMEWORKguards forWinHttpHandlervsSocketsHttpHandlerassertions#if NETFRAMEWORKguards forusingvsawait usingon streamsHandlesCancellationTokenAsyncto useAssert.ThrowsAnyAsync<OperationCanceledException>for cross-TFM compatibilityBreaking Changes
net6.0andnet9.0target frameworks (both end-of-life)net6.0-*tonet8.0-*Test Results
All 195 tests pass on all 3 test TFMs (net462, net8.0, net10.0).
Microsoft Reviewers: Open in CodeFlow